<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="app" uri="/WEB-INF/tld/app.tld" %>
<%@ taglib prefix="ct" uri="/WEB-INF/tld/commonTag.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="/WEB-INF/jsp/common/common_header.jsp" %>
<%@ include file="/WEB-INF/jsp/common/common.jsp" %>


	<script language="javascript">

	function funConfirm() {
		if(validation()){
			return;
		}	
		

		var	strStatus ="정말 수정하시겠습니까?";	
		
		if (confirm(strStatus)) {
	        var fm  = document.form;
	        fm.action = 'secretConfirm.do';
	        fm.submit();
		}		
		
	} 

	
	function validation() {
		

		if($("#nowPassword").val() ==""){
			alert("현재 패스워드를 입력해주세요");
			$("#nowPassword").focus();
			return true;
		}
		if($("#password").val() ==""){
			alert("패스워드를 입력해주세요");
			$("#password").focus();
			return true;
		}
		if($("#repassword").val() ==""){
			alert("패스워드확인를 입력해주세요");
			$("#repassword").focus();
			return true;
		}
		
		if($("#password").val() != $("#repassword").val()){
			alert("패스워드가 일치하지 않습니다.");
			$("#password").focus();
			return true;
		}

	} 	
	</script>
</head>
<body>
<div class="con_area" style="width: 800px">
<form id="form" name="form" action="" >
<input type="hidden" id="userId" name="userId" value="${model.userId}"/>
<input type="hidden" id="email" name="email" value="${model.email}"/>
<input type="hidden" id="userName" name="userName" value="${model.userName}"/>
<input type="hidden" id="rightCdFlag" name="rightCdFlag" value="01"/>
<br><br>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td align="left"><h2 class="tit">권한관리</h2></td>
        <td align="right"><span>권한관리 > <b> 비밀번호 변경  </b></span></td>
    </tr>
</table>
<br>
<br>
<br>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td align="left"><h2 class="tit">※ 비밀번호 변경 </h2></td>
    </tr>
</table>
<br>
    <div style="margin-top:7px"/>
        <table cellpadding="0" cellspacing="0" border="0" class="data_table_01" width="100%">
            <tr>
                <td class="data_01" style='width:250px; text-align:left;'>&nbsp;＊아이디</td>
                <td class="data_02">${model.userId}
                </td>
            </tr>        
            <tr>
                <td class="data_01" style='width:250px; text-align:left;'>&nbsp;＊사용자명</td>
                <td class="data_02">${model.storeName}- ${model.comCeo}
                </td>
            </tr>               
            <tr>
                <td class="data_01" style='width:250px; text-align:left;'>&nbsp;＊현재비밀번호</td>
                <td class="data_02"><input type="password" id="nowPassword" name="nowPassword" value=""  size="40"/> 
                </td>
            </tr>            
            <tr>
                <td class="data_01" style='width:250px; text-align:left;'>&nbsp;＊비밀번호</td>
                <td class="data_02"><input type="password" id="password" name="password" value=""  size="40"/> 
                </td>
            </tr>
            <tr>
                <td class="data_01" style='width:250px; text-align:left;'>&nbsp;＊비밀번호 확인</td> 
                <td class="data_02"><input type="password" id="repassword" name="repassword" value=""  size="40"/><font color ="red"> &nbsp;※ 비밀번호를 동일하게 재입력하여 주십시오.</font>
                </td>
            </tr>        
        </table>        
    </div> 
<br><br> 
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td align="center">
	       		 <input type="button" class="button_63_01" value="수정" style="width:65px; align=center" onclick="funConfirm();"/>
        </td>
    </tr>
</table>          
</form>
</div>


</body>
